import { Base } from '../../../../utils/base.js';
class Suvacation extends Base {
  constructor() {
    super();
  }

  //审批人
  getPeople(place, callback) {
    var param = {
      url: '/api/work/work/getReviewed',
      type: "get",
      data: {},
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  //假事类别
  getClass(place, callback) {
    var param = {
      url: '/api/work/leave/leaveType',
      type: "get",
      data: {},
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }

  //提交假事
  getLeave(place, callback) {
    var param = {
      url: '/api/work/leave/add',
      type: "post",
      data: place,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(param);
  }
};
export { Suvacation };